/**
 * Created by Administrator on 2018/4/22.
 */
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuex from 'vuex'

Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    showLoading: false
  },
  getters: {
    showLoading: state => {
      return state.showLoading
    }
  },
  mutations: {
    changeShowLoading: (state) => {
      state.showLoading = !state.showLoading
    }
  }
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
